let failedList = [];
function failed(state=failedList,action){
    switch(action.type){
        case 'GETFAILEDLIST':
            return [...action.data];
        case 'ADD_FAILEDLIST':
            return [...state,action.value];
        default:
            return state;
        
    }
};

export default failed;